package Application.Widgets.Override;

import Application.Utils.StaticUtil;

import javax.swing.*;

public class CheckBoxOverride extends JCheckBox {
    public CheckBoxOverride(String text,JComponent panel)
    {
        super(text);
        this.setFont(StaticUtil.config.fontGetter());
        panel.add(this);
    }
    public CheckBoxOverride(String text,Boolean baseValue,JComponent panel)
    {
        super(text);
        this.setFont(StaticUtil.config.fontGetter());
        this.setSelected(baseValue);
        panel.add(this);
    }

    public boolean getValue(){return this.isSelected();}
}
